<template>
  <section class="xmv-message-box xmv-wrap">
    <h4>Spinner</h4>
    <div class="demo-markup-source u-letter-box--small c-text">
      <xm-spinner color="#26a2ff" type="snake"></xm-spinner>
      <xm-spinner color="#26a2ff" type="double-bounce"></xm-spinner>
      <xm-spinner color="#26a2ff" type="fading-circle"></xm-spinner>
    </div>
    <div class="demo-markup-source u-letter-box--small">
      <pre class="c-pre">
        <code class="c-code c-code--multiline html hljs xml">
&ltxm-spinner color="#26a2ff" type="snake"&gt&lt/xm-spinner&gt
&ltxxm-spinner color="#26a2ff" type="double-bounce"&gt&ltx/xm-spinner&gt
&ltxxm-spinner color="#26a2ff" type="fading-circle"&gt&ltx/xm-spinner&gt
        </code>
      </pre>
    </div>
  </section>
</template>
<script>
export default {
  methods: {
    openToast() {
      this.$toast("提示信息");
    },
    openBottomToast() {
      this.$toast({
        message: "提示信息",
        position: "bottom"
      });
    }
  }
};
</script>

<style lang="less" scoped>
h4 {
  font-weight: normal;
  font-size: 14px;
  text-align: left;
  background-color: #e9e9e9;
  padding: 10px;
  margin: 20px 0;
}
p {
  text-align: left;
  padding: 0.5em 0;
}
.c-code--multiline {
  display: block;
  padding: 0.5em 1em;
  border-radius: 4px;
  white-space: pre;
  word-wrap: normal;
  overflow-x: auto;
}
.demo-markup-source {
  text-align: left;
}
.c-code {
  font-size: 0.8em;
}
</style>